<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'employeedocuments-form',
	'enableAjaxValidation'=>false,
        'htmlOptions'=>array(
            'enctype'=>'multipart/form-data'
        )
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
        <?php echo $form->hiddenField($model,'empno');?>
	<div class="row">
		<?php echo $form->labelEx($model,'docname'); ?>
                <?php echo $form->textField($model,'docname');?>
		
		<?php echo $form->error($model,'docname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'filename'); ?>
		<?php echo $form->fileField($model,'file'); ?>
            <div class="model-data">
                <?php echo $model->filename;?>
            </div>
            <br/>
            <?php echo $form->error($model,'file');?>
		
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'notes'); ?>
		<?php echo $form->textArea($model,'notes',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'notes'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->